package com.google.gwt.sample.contacts.server;

import com.google.gwt.sample.contacts.client.action.GetContactAction;
import com.google.gwt.sample.contacts.client.action.GetContactResponse;

import com.guit.client.command.action.CommandException;

public class GetContactHandler extends AbstractHandler<GetContactAction, GetContactResponse> {

    @Override
    public GetContactResponse handle(GetContactAction action) throws CommandException {
        return new GetContactResponse(dataUtil.getContact(action.getId()));
    }
}
